class Tag < ActiveRecord::Base
  belongs_to :post
  validates_uniqueness_of :name,scope: :post_id
end
